<?php
// +----------------------------------------------------------------------
// | 店铺端菜单设置
// +----------------------------------------------------------------------
return [
    [
        'name' => 'PROMOTION_LIAN',
        'title' => '链动管理',
        'url' => 'lian://shop/member/lists',
        'parent' => 'PROMOTION_CENTER',
        'picture' => 'addon/lian/shop/view/public/img/lian_new.png',
        'picture_selected' => 'addon/lian/shop/view/public/img/lian_select.png',
        'is_show' => 1,
        'sort' => 100,
        'child_list' => [
            [
                'name' => 'PROMOTION_LIAN_MEMBER_LIST',
                'title' => '会员管理',
                'url' => 'lian://shop/member/lists',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 2,
                'child_list' => [
                    [
                        'name' => 'PROMOTION_LIAN_MEMBER_DETAIL',
                        'title' => '会员信息',
                        'url' => 'lian://shop/member/detail',
                        'is_show' => 0,
                        'is_control' => 1,
                        'type' => 'button',
                    ],                   
                ],
            ],
            [
                'name' => 'PROMOTION_LIAN_CHART',
                'title' => '公排关系图',
                'url' => 'lian://shop/member/charts',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 2,
                'child_list' => [
                ]
            ],
            [
                'name' => 'PROMOTION_LIAN_GOODS_LIST',
                'title' => '商品管理',
                'url' => 'lian://shop/goods/lists',
                'is_show' => 1,
                'sort' => 4,
                'child_list' => [
                    [
                        'name' => 'PROMOTION_LIAN_GOODS_DETAIL',
                        'title' => '商品详情',
                        'url' => 'lian://shop/goods/detail',
                        'is_show' => 0,
                        'type' => 'button',
                    ],
                    [
                        'name' => 'PROMOTION_LIAN_GOODS_CONFIG',
                        'title' => '商品设置',
                        'url' => 'lian://shop/goods/config',
                        'sort' => 1,
                        'is_show' => 0,
                        'type' => 'button',
                    ],
                    [
                        'name' => 'PROMOTION_LIAN_GOODS_MODIFY',
                        'title' => '状态设置',
                        'url' => 'lian://shop/goods/modify',
                        'sort' => 1,
                        'is_show' => 0,
                        'type' => 'button',
                    ],
                    [
                        'name' => 'PROMOTION_LIAN_SET_GOODS_IS_LIAN',
                        'title' => '是否参与链动',
                        'url' => 'lian://shop/goods/setGoodsIsLian',
                        'sort' => 1,
                        'is_show' => 0,
                        'type' => 'button',
                    ],
                ]
            ],
            [
                'name' => 'PROMOTION_LIAN_LEVEL',
                'title' => '等级管理',
                'url' => 'lian://shop/level/lists',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 6,
                'child_list' => [
                    [
                        'name' => 'PROMOTION_LIAN_LEVEL_ADD',
                        'title' => '添加等级',
                        'url' => 'lian://shop/level/add',
                        'is_show' => 0,
                        'type' => 'button',
                    ],
                    [
                        'name' => 'PROMOTION_LIAN_LEVEL_EDIT',
                        'title' => '编辑等级',
                        'url' => 'lian://shop/level/edit',
                        'is_show' => 0,
                        'type' => 'button',
                    ],
                    [
                        'name' => 'PROMOTION_LIAN_LEVEL_STATUS',
                        'title' => '等级状态设置',
                        'url' => 'lian://shop/level/status',
                        'is_show' => 0,
                        'type' => 'button',
                    ],
                    [
                        'name' => 'PROMOTION_LIAN_LEVEL_DELETE',
                        'title' => '删除等级',
                        'url' => 'lian://shop/level/delete',
                        'is_show' => 0,
                        'type' => 'button',
                    ]
                ]
            ],
            [
                'name' => 'PROMOTION_LIAN_REWARD',
                'title' => '奖励记录',
                'url' => 'lian://shop/reward/lists',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 8,
                'child_list' => []
            ],
            [
                'name' => 'PROMOTION_LIAN_CHANGE',
                'title' => '关系变动记录',
                'url' => 'lian://shop/change/lists',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 9,
                'child_list' => []
            ],
            [
                'name' => 'PROMOTION_LIAN_CONFIG',
                'title' => '基础设置',
                'url' => 'lian://shop/config/basics',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 10,
                'child_list' => [
                    [
                        'name' => 'PROMOTION_LIAN_BASICS',
                        'title' => '基础设置',
                        'url' => 'lian://shop/config/basics',
                        'is_show' => 1,
                    ],
                    // [
                    //     'name' => 'PROMOTION_LIAN_WORDS',
                    //     'title' => '文字设置',
                    //     'url' => 'lian://shop/config/words',
                    //     'is_show' => 1,
                    // ],
                    // [
                    //     'name' => 'PROMOTION_LIAN_SETTLE_RULE',
                    //     'title' => '结算设置',
                    //     'url' => 'lian://shop/config/settle',
                    //     'is_show' => 1,
                    // ]
                ]
            ],
            // [
            //     'name' => 'PROMOTION_LIAN_POSTER_TEMPLATE',
            //     'title' => '海报管理',
            //     'url' => 'lian://shop/postertemplate/lists',
            //     'is_show' => 1,
            //     'is_control' => 1,
            //     'sort' => 12,
            //     'child_list' => [
            //         [
            //             'name' => 'PROMOTION_LIAN_POSTER_TEMPLATE_ADD',
            //             'title' => '添加海报',
            //             'url' => 'lian://shop/postertemplate/addpostertemplate',
            //             'is_show' => 0,
            //             'type' => 'button',
            //         ],
            //         [
            //             'name' => 'PROMOTION_LIAN_POSTER_TEMPLATE_EDIT',
            //             'title' => '编辑海报',
            //             'url' => 'lian://shop/postertemplate/editpostertemplate',
            //             'is_show' => 0,
            //             'type' => 'button',
            //         ]
            //     ]
            // ],

        ]
    ],
    

];